﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Core</Project>
// <FileName>AgentApply.cs</FileName>
// <CreateTime>2017-04-30 22:42</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-04-30 22:42" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using Vecen.BangChuang.Authorization.Users;

namespace Vecen.BangChuang.BangChuang.Agents {
    [Table("AgentApplies")]
    public class AgentApply: CreationAuditedEntity {
        /// <summary>
        /// 申请人ID
        /// </summary>
        public long UserId { get; set; }

        [ForeignKey(nameof(UserId))]
        public virtual User User { get; set; }

        /// <summary>
        /// 地区ID
        /// </summary>
        public long? AreaCode { get; set; }

        //是否是学生
        public bool IsStudent { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(64)]
        public string Name { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [StringLength(32)]
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 微信
        /// </summary>
        [StringLength(32)]
        public string Wechat { get; set; }

        /// <summary>
        /// 学校信息
        /// </summary>
        [StringLength(64)]
        public string UniversityName { get; set; }


        /// <summary>
        /// 学院信息
        /// </summary>
        [StringLength(64)]
        public string CollegeName { get; set; }

        /// <summary>
        /// 上级代理商ID
        /// </summary>
        public int? ParentAgentId { get; set; }

        /// <summary>
        /// 代理商类别
        /// </summary>
        [StringLength(32)]
        public string UserType { get; set; }


        /// <summary>
        /// 是否已确认
        /// </summary>
        public bool IsConfirmed { get; set; }
    }
}